A versatile friction model for Newtonian liquids flowing under unsteady regimes in pipes