Influence of external conditions and vessel encounters on vessel behavior in ports and waterways using Automatic Identification System data