Characterizing P-Wave Velocity and Elastic Properties of Sedimentary Rocks for Foundation of Building