Li- and Mg-based borohydrides for hydrogen storage and ionic conductor