Resonant generation and refraction of dispersive shock waves in one-dimensional nonlinear Schrödinger flows