Defining and Detecting Waiting Time in Maritime Traffic: An AIS Approach