High- T c superconductors: A variational theory of the superconducting state