Shift and broadening of hadronic resonances formed in nuclear interactions