LUMINOUS AND VARIABLE STARS IN M31 AND M33. I. THE WARM HYPERGIANTS AND POST-RED SUPERGIANT EVOLUTION