Performance of mixed effects models in the analysis of mediated longitudinal data