A physically-based method for removing pits in digital elevation models