Heavy-fermion systems at the magnetic-nonmagnetic quantum phase transition