Firmware and Software for an Integrated Electrophysiology Data Acquisition and Stimulation System