Numerical evaluations of periodic wave solutions, integrable time discretization and their applications to the mKdV–sine-Gordon equation