Capita, CGI and Telefonica win UK smart-grid contracts