A heat wave in India has left more than 500 people dead, and forecasters expect the punishing conditions to persist in the coming days.