Macroporous silicon for spectroscopic CO2 detection