Why Alibaba is buying shopping malls while Facebook is buying virtual-reality companies