Magnetism in SrTiO3 before and after UV irradiation