Four-dimensional Anisotropic Mesh Adaptation for Spacetime Numerical Simulations