Fabrication of a needle-type pH sensor by selective electrodeposition