Design and fabrication of slant-counter electrodes for optical switches