The work input to an unsaturated granular material