Integrate flexibility assessments into grid planning