Afghan inmates passed messages in Korans: US officials