Numerical simulation of uniaxial compression tests on layered rock specimens using the discrete element method