Forms of Fermat equations and their zeta functions