Retired Pawtucket officer pleads no contest in gas theft