RIS-Assisted Grant-Free NOMA: User Pairing, RIS Assignment, and Phase Shift Alignment