Thermal crystalline-to-amorphous transition of beryllium hydride