the process in which nitrogen gas from the atmosphere is converted into ammonia by bacteria that live on the roots of a legumes plants