Switching of Electrically Commanded Alignment Layers Probed by Optical Second Harmonic Generation