Quadrupole correlation energy by the generator coordinate method