Ferromagnetic properties in undoped and Cr-doped SnO2 nanowires