An integrated pressure-driven microsystem based on porous silicon for optical monitoring of gaseous and liquid substances