Calculation of retention indices by molecular topology