A scalable planning framework of energy storage systems under frequency dynamics constraints. (February 2023)