Discrete element method for unsaturated granular materials