Improving Physical Layer Security for Reconfigurable Intelligent Surface Aided NOMA 6G Networks