Factorization of weakly compact operators between Banach spaces and Fr echet or (LB)-spaces