Expanding the Knowledge of the Selective-Sensing Mechanism of Nitro Compounds by Luminescent Terbium Metal–Organic Frameworks through Multiconfigurational ab Initio Calculations