Assessing the Legality of Solitary Confinement