Prison staffing shortages affecting inmate conditions