High precision surface metrology using a phase retrieval method