Derivation of transient relativistic fluid dynamics from the Boltzmann equation for a multi-component system