Analysis and optimization of BESS operation in energy markets - Gonçalo José Ribeiro Baptista (2024)