Automatic Detection of Underwater Chain Links using a Forward-Looking Sonar