Optimal Control Strategies for Seasonal Thermal Energy Storage Systems with Market Interaction