Synthesis of a BaO thin film supported on MgO(001) using a shell-model amorphisation and recrystallisation strategy