Low-dimensional catalysts for hydrogen evolution and CO2 reduction