Cohomology of algebras over Hopf algebras