In situ infrared spectroscopic study of luminescent porous silicon