Energy Costs and Neural Complexity Evolution in Changing Environments