Buckling and postbuckling of magnetoelastic flat plates carrying an electric current