One- and two-dimensional model for the linear MHD generator channel design