Nokia cuts R&D jobs amid weak sales