Compounds containing a naphthalene ring or a completely or partially hydrogenated naphthalene ring