Brain–machine interfaces: past, present and future