Shape identification in electro-magnetic and wave-propagation related inverse problems