Ultrasonic characteristic of phase shift of layered structure and the determination of layer thickness