Piecewise ensemble averaging stochastic Liouville equations for simulating non-Markovian quantum dynamics. (1st October 2022)