A Bidirectional Neural Interface Microsystem With Spike Recording, Microstimulation, And Real-Time Stimulus Artifact Rejection Capability