Feature Geometry for Stereo Sidescan and Forward-looking Sonar