Automatic path-planning algorithm for realistic decorative robotic painting