Ex-Irvine police officer pleads no contest to beating man at girlfriend’s Torrance home