An Analysis of Some Classes of Petrov-Galerkin and Optimal Test Function Methods