Computational phase studies in commercial aluminium and magnesium alloys