Theoretical study of electronic, magnetic and optical properties of TM (V, Cr, Mn and Fe) doped SnO2: ab-initio and Monte Carlo simulation