Elucidating the electronic structures of β-Ag2MoO4 and Ag2O nanocrystals via theoretical and experimental approaches towards electrochemical water splitting and CO2 reduction.