A first-principles study aided with Monte Carlo simulations of carbon doped iron-manganese alloys