A wireless and batteryless neural headstage with optical stimulation and electrophysiological recording