Effective passivation of porous silicon optical devices by thermal carbonization