Biologically inspired spiking neural networks for energy-efficient robot learning and control