Regeneration of sodium borohydride from sodium metaborate, and isolation of intermediate compounds