Silica-based photonic crystals embedded in a chitosan-TEOS matrix: preparation, properties and proposed applications