Exact solution and coherent states of an asymmetric oscillator with position-dependent mass