Multislice simulations for in-situ HRTEM studies of nanostructured magnesium hydride at ambient hydrogen pressure.