Analysis of projection methods for rational function approximation to the matrix exponential