Text this: Resource Allocation in the RIS Assisted SCMA Cellular Network Coexisting With D2D Communications