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