Fabrication and characterization of polyimide-based 'smooth' titanium nitride microelectrode arrays for neural stimulation and recording