SLAM using an Imaging Sonar for Partially Structured Underwater Environments