Features of metal atom 2p excitations and electronic structure of 3d-metal phthalocyanines studied by X-ray absorption and resonant photoemission