Essential role of lattice oxygen in methanol electrochemical refinery toward formate