Electro-optic and magneto-optic photonic devices based on multilayers photonic structures