Multiple origins of linear dunes on Earth and Titan