Why are groups good for us? Social determinants of well-being behind bars and beyond