A minimization method for the solution of large symmetric eigenproblems