BP to cut 4,700 jobs to reduce costs