Ex-NYPD shrink pleads guilty to shooting husband to be with lover