Apple overtakes Nvidia as world's most valuable company