Line Thermals from Finite Sources in Neutral and Stable Environments, with Application to Thermal Plumes from Submarines | Synapse