The physics of edge resonant magnetic perturbations in hot tokamak plasmasa)