Synthesis of bulk MgB2 superconductors by pulsed electric current