A theoretical formulation of dilatation/contraction for continuum modelling of granular flows