Operadic bar constructions, cylinder objects, and homotopy morphisms of algebras over operads