Directly photoexcited Dirac and Weyl fermions in ZrSiS and NbAs