Strong homotopy algebras in classical field theory