Preconditioned generalized minimal residual method for quaternion linear systems with structured coefficient matrices and its applications