Nvidia nears deal to buy chip designer Arm for more than $40 billion