Two Applications of the Variational Method to Quantum Mechanics