The hot core towards the intermediate-mass protostar NGC 7129 FIRS 2. Chemical similarities with Orion KL