A technique for shape optimization of ducted fans