A teenage neo-Nazi satanist who was caught with terrorism material and encouraged suicide online has been jailed for six years.