Efficient implementation of modern entropy stable and kinetic energy preserving discontinuous Galerkin methods for conservation laws