Ex-Tempe police officer sentenced after alleged affair with drug dealer