Dopant-tuned stabilization of intermediates promotes electrosynthesis of valuable C3 products