Sensing CO2 in a chemically modified porous silicon film