Density functional study of magnetic properties in Zn-doped SnO2