Optically transparent composite diamond/Ti electrodes