A theoretical method for the analysis and design of multi-element airfoils