Convergence for a general form of the GAOR method and its application to the MSOR method