Deciphering the mechanistic pathway for CO2 electroreduction to dimethoxymethane