Optimal observer motion for bearings-only localization and tracking