Nonproportional response of LaBr3:Ce and LaCl3:Ce scintillators to synchrotron x-ray irradiation