Solving large-scale general phase retrieval problems via a sequence of convex relaxations