Country electrician who designed missiles for the Islamic State jailed for six years