Chemical effects on the dynamics of organic molecules irradiated with high intensity x rays