Dielectric metamaterials and metasurfaces in transformation optics and photonics. (2021)