The relation between density and refractive index as a rule for homologous series of organic compounds