An Information-Theoretic Approach to Phase Retrieval