Ericsson to cut 5,000 jobs, revenue up