Coupled structure analysis and geometric modelling in rule-based shape optimisation