Theoretical study of processes on the solid electrolyte interface of rechargeable magnesium batteries : doctoral thesis