PAC statistical model checking of mean payoff in discrete- and continuous-time MDP