Cohomology of automorphic bundles