Upper critical and irreversibility fields in selectively doped YBa2Cu3O7