Optical nonlocality in multilayered hyperbolic metamaterials based on Thue-Morse superlattices