Optimization of carbon electrodes derived from epoxy-based photoresist