Modeling sonar sensors