Fabrication of high-resolution, self-aligned palladium electrodes