The optimal structure-conductivity relation in epoxy-phthalocyanine nanocomposites