Homotopy algebras II: The Homotopy Transfer Theorem