Phthalocyanine- and subphthalocyanine-based multifunctional ensembles