Process modeling, simulation, and paint thickness measurement for robotic spray painting