Classification of 6-dimensional nilpotent Lie algebras over fields of characteristic not 2