Oxygen nonstoichiometry and metal substitution in TlSr2CaCu2O7−z