Investigation of the processes for reversible hydrogen storage in the Li–Mg–N–H system