Explain what segment trees are needed for in a scenario that requires efficient range-based queries at Tata Digital.