Inmate dies following medical emergency at York County Detention Center