Pyrite nanocrystals: shape-controlled synthesis and tunable optical properties via reversible self-assembly