Discrete shape sensitivity equations for aerodynamic problems