Rare-earth engineering of NaAlO3 perovskites unlocks unified optoelectronic, thermoelectric, and spintronic functionalities | Synapse