Structural changes and oxygen stoichiometry in Pb2Sr2Y1−xCaxCu3O8+δ