Automated discovery and optimization of autonomous quantum error correction codes for a general open quantum system | Synapse