Heat transfer and fluid flow in plasma spraying