First-principles study of the magnetic properties of Zn-doped SnO2