An extendable and scalable simulation tool for the analysis of power system dynamics in large and complex networks