Reconstruction of permittivity of multiple layers in free space