Asymptotic preserving space-time discontinuous Galerkin methods for a class of relaxation systems