Describe how you would design a reward function for a robotic arm performing a complex insertion task, and how you prevent reward hacking.