Simulation of spall fracture of aluminum and magnesium over a wide range of load duration and temperature