Effects of Peripheral Substituents on the Electronic Structure and Properties of Unligated and Ligated Metal Phthalocyanines, Metal = Fe, Co, Zn.