Text this: Theoretical Foundations and Application of Photonic Crystals