GlobalFoundries to cut about 800 jobs by the end of this year