Photonic crystals: From fundamentals to functional photonic opals