Theoretical perspective on the interaction of CO2 and H2O molecules with functionalized magnesium and scandium phthalocyanines