The crystal structures of solid hydrogen and solid deuterium in thin films