Interfacial Engineering and Photoelectrochemistry of Patterned Metal/Semiconductor Heterostructures