Applications of variational methods to problems in the geometry of surfaces