Understanding the interaction between transition metal doping and ligand atoms of ZnS and ZnO monolayers to promote the CO2 reduction reaction.