Structural study of Mg-exchanged NaX and CaX zeolites in hydrated (25°C) and dehydrated (400°C) states