The rise of on-device AI is reshaping the future of PCs and smartphones