Nijenhuis tensors and Lie algebras