Electron-spin resonance of rare-earth ions in the actinide cubic metal Th