Mid-infrared luminous quasars in the GOODS–Herschel fields: a large population of heavily obscured, Compton-thick quasars at z ≈ 2