Relations between torsional frequency and ionization potential in halopropanes and allyl halides