An embedded boundary method with smoothness guarantees and its impact on aerodynamic shape optimization with topological changes