Electronic structure of the superconducting compounds TlBa2CaCu2O7 and TlBa2Ca2Cu3O9