Curved Geometries from Planar Director Fields: Solving the Two-Dimensional Inverse Problem.