Optical properties of one-dimensional graphene polymers: the case of polyphenanthrene