The electronic susceptibility and charge density waves in 2H layer compounds