Simulation of the nanoindentation response in single-crystal magnesium using crystal-plasticity finite element methods