Formation mechanism of highly dispersed semi-embedded ruthenium nanoparticles in porous carbon matrix determined by in situ temperature-programmed infrared spectroscopy