Vertical cavity amplifying photonic switch