IBM makes smart grid deals in Brazil, South Korea