Formulation of a Ritz-Galerkin type procedure for the approximate solution of the neutron transport equation