Optical properties of C6H12, C6H10, C6H8, C6H6, C7H8, C6H5Cl and C5H5N in the solid and gaseous state derived from electron energy losses