Ligand-controlled and nanoconfinement-boosted luminescence employing Pt(ii) and Pd(ii) complexes: from color-tunable aggregation-enhanced dual emitters towards self-referenced oxygen reporters