Perovskite transparent conducting oxides: an ab initio study