Modular neuronal assemblies embodied in a closed-loop environment: toward future integration of brains and machines.