A robust synthetic data generation framework for machine learning in High-Resolution Transmission Electron Microscopy (HRTEM)