Dynamic resource optimization and altitude selection in uav-based multi-access edge computing