On the metal-nonmetal transition in metal-ammonia solutions