Thermal modeling of plasma spray deposition of nanostructured ceramics