Modeling evacuation dynamics on stairs by an extended optimal steps model