Advanced electron crystallography through model-based imaging