Gravar-mail: A simulation tool for optimizing a 3D spray painting system