Unified analysis of discontinuous Galerkin and C0-interior penalty finite element methods for Hamilton-Jacobi-Bellman and Isaacs equations