Variational solution of Schrödinger's equation for the static screened Coulomb potential