Throughput and delay optimisation for NOMA systems with energy harvesting