Evolving Instinctive Behaviour in Resource-Constrained Autonomous Agents Using Grammatical Evolution