Porous silicon microcavities: synthesis, characterization, and application to photonic barcode devices