Flattening and solidification of thermally sprayed particles