Ultrafast optical spectroscopy of strongly correlated materials and high-temperature superconductors: a non-equilibrium approach