Superconductivity and crystal structure in Nd1−x+yCaxBa2−yCu3O7−d