A modulation method for self-focusing in the perturbed critical nonlinear Schrödinger equation