Liquid crystal director fields in micropores of photonic crystals