Lattice-Boltzmann lattice-spring simulations of flexibility and inertial effects on deformation and cruising reversal of self-propelled flexible swimming bodies