Optics design and fabrication of 3D electrically switchable hexagonal photonic crystal