Derived deformation theory of algebraic structures