Multi-stage optimization of the installation of Energy Storage Systems in railway electrical infrastructures with nature-inspired optimization algorithms