The structure of terrestrial bodies: Impact heating, corotation limits, and synestias