Optical and Transport Properties in 3D Dirac and Weyl Semimetals