The Refractor Problem with Loss of Energy and Monge-Ampere Type Equations