Final closure of Panama and the onset of northern hemisphere glaciation