Ambidexterity in chromatic homotopy theory