Selected topics in photonic crystals and metamaterials