Sydney swelters through hottest day in two years