Theory of spin glasses: Susceptibility and specific heat in a magnetic field