A new approach to online thickness measurement of thermal spray coatings