Optical Thue–Morse Systems for Nanophotonics Applications