Numerical analysis of confinement effect on crack propagation mechanism from a flaw in a pre-cracked rock under compression