Phase Retrieval Under a Generative Prior