Initial-boundary value problem to 2D Boussinesq equations for MHD convection with stratification effects