Reconstructing sharply folding surfaces: A convex formulation