Medical examiner rules cause of inmate's June death in Gregg County Jail