Transforming differential equations of multi-loop Feynman integrals into canonical form