IDGenRec: LLM-RecSys Alignment with Textual ID Learning