Intel takes $18.7bn in restructuring and impairment charges