Theoretical study on the stability of double-decker type metal phthalocyanines, M(Pc)2 and M(Pc)2(+) (M = Ti, Sn and Sc): a critical assessment on the performance of density functionals.