Study says shipping prisoners out of state is bad for them and state