A new layer-peeling algorithm to the identification of lossy media without using phase information