Optical Switching with a Fabry-Perot type microcavity filled with liquid crystals