Text this: Enhancing D2D Communication Through RIS-Assisted NOMA Networks: An Underlay Framework With Imperfect SIC