Sol–gel-derived photonic structures handling erbium ions luminescence