3D Distance Filter for the Autonomous Navigation of UAVs in Agricultural Scenarios