If the distance between the foci of a hyperbola is 16 and its eccentricity is √2, then obtain the equation of the hyperbola.