Joint optimization of molecular structures and process conditions using variational autoencoders and swarm-based metaheuristics