R.I. pharmacist jailed for diverting prescription drugs