Civil commitment begins when the prison sentence ends, and it must be for the purposes of “treatment”