Five Americans detained in Pakistan appear in court