Self-similar solutions of the modified nonlinear Schrödinger equation