Magnetocaloric effect in MnCoGe alloys studied by first-principles calculations and Monte-Carlo simulation