A pixel space method for testing dipole modulation in the CMB polarization