Ericsson aims to make between 3,000 and 4,000 staff redundant this summer and thousands more may have to leave the company later.