Wave breaking and formation of dispersive shock waves in a defocusing nonlinear optical material