Two algebraic methods for least squares L-structured and generalized L-structured problems of the commutative quaternion Stein matrix equation