Time-resolved sensing of chemical species in porous silicon optical microcavity