On parabolic equations with critical electromagnetic potentials