Gamov states in the generator coordinate method