A Generalized Transport-Velocity Formulation for SPH