Porous silicon microcavities as optical chemical sensors