Preparation and characterization of biocompatible carbon electrodes