how are harbors and inlets generally form