Effects of Microstructure on the Elastic Properties of Sandstones and Its Seismic Implication