Reconstruction of continuous and discontinuous refracted index profiles from power measurements of reflective fields