Diagram technique for Hubbard operators