Seol mar théacs é seo: A coarse-grained model for free and template-bound porphyrin nanorings