The electronic absorption spectra of phthalocyanine monomers and dimers