Weakly compact homomorphisms between Banach algebras