A variable coefficient nonlinear Schrödinger equation: localized waves on the plane wave background and their dynamics