Emplacement of long lava flows on planetary surfaces