Indian stock indices extend gains to third week