Ex-doctor sentenced for sexual misconduct involving patients