Local Structure and Dynamics of Proton and Hydride-Ion Conducting Perovskite Type Oxides