DEM simulation of bonded granular material. Part I: Contact model and application to cemented sand