Critical temperature dependence of YBa2Cu3Oy and Y1−xCaxBa2Cu3Oy on carrier concentration