How investigations into three historical collisions exposed the volatile risks at sea and how they have shaped regulations and technological advancements