Double and single ionization of neon, argon and krypton in the threshold region studied by photoelectron-ion coincidence spectroscopy