Denied ticket, NCP’s lone MLA in Gujarat resigns, files nomination as SP candidate