With drug overdoses soaring, states limit the length of painkiller prescriptions