Efficient numerical geometry handling for gradient-based aerodynamic shape optimisation