Applications of theory of simultaneous diagonalization of several Hermitian forms