3D Path Planning for UAVs in Dynamic Environments in the Presence of Uncertainties