Boundary-layer separation from the electrode wall of an MHD generator