The generator coordinate method as an approximation to the shell model