Multiscale Gaussian-beam method for high-frequency wave propagation and inverse problems