The effect of intermolecular interactions on photoluminescence of a porphyrin side-chain polymer