Persistent spin current in nanodevices and definition of the spin current