Molecular dynamics simulation of the effects of temperature on the microscopic deformation of single crystal magnesium containing a void and a crack