Induced optical metric in the non-impedance-matched media