Efficient Electrochemical and Photoelectrochemical H2 Production from Water by a Cobalt Dithiolene One-Dimensional Metal-Organic Surface.