Causal mediation analysis with one or multiple mediators: a comparative study