Modelling the micro-structure and hydraulic properties of sands