Rovi buys Sonic, boosts Smart TV offering