Self-optimizing method and software for calibration and mapping of a laser system for laser machining | Synapse