Phase retrieval of radiated fields