A sensor for vector electric field measurements through a nonlinear anisotropic optical crystal