Linking biological and artificial neuronal assemblies to restore lost brain functions