Two-Dimensional Frontier-Based Viewpoint Generation for Exploring and Mapping Underwater Environments