Samsung buys SmartThings in preemptive HomeKit strike