Scientists identify factors which drive the evolution of herbicide resistance