Google buys ‘smart’ thermostat maker Nest for $3.2 bn