A Wavelet-Optimized Adaptive Grid Method for Finite-Difference Simulation of Wave Propagation