Traveling surface waves of moderate amplitude in shallow water