Acoustic Emission Monitoring and Failure Precursors of Sandstone Samples under Various Loading and Unloading Paths