Thermal spraying techniques