Temperature dependence of the near edge spectrum of water