Title: Automatic rule-based shape optimization of two-dimensional structures subjected to static loading, body forces and impact