Revealing substituent effects on the electronic structure and planarity of Ni-porphyrins.