Electronic structure of antiferromagnetic YBa2Cu3O6