Single stellar populations in the near-infrared - II. Synthesis models