Automatic offline programming for intelligent spraying laminate robot