Noninvasive ultrasound method for simultaneous measurement of thickness and speed of sound in solids