A General Power Allocation Scheme to Guarantee Quality of Service in Downlink and Uplink NOMA Systems | Synapse