Probing source and detector nonstandard interaction parameters at the DUNE near detector