Qualcomm to buy Modular for nearly $4B to own the software layer for AI chips