BioMEMS for medicine: On-chip cell characterization and implantable microelectrodes