Environmental effects on the growth of nitrogen‐fixing bacteria