Electrochemical patterning of surfaces with high resolution