Heat capacity and thermodynamic properties of alkali and alkali-earth borohydrides