Temperature Dependent Local Atomic Structure and Vibrational Dynamics of Barium Hydride and Calcium Hydride