Rational homotopy and intersection-formality of complex algebraic varieties