Error estimates for the semidiscrete Galerkin approximations of the FitzHugh-Nagumo equations