Generalized forward–backward initial value representation for the calculation of correlation functions in complex systems