Cofree Hopf algebras on Hopf bimodule algebras