Density-Aware Reinforcement Learning to Optimise Energy Efficiency in UAV-Assisted Networks