Angular momentum evolution in dark matter haloes: a study of the Bolshoi and Millennium simulations