Modi quits as Gujarat CM