Amazon buys smart doorbell company Ring for more than $1bn