Variational Principles and Free-Boundary Problems