Mohammad Nabi quits as Afghanistan skipper