Death of Appleton man in police custody ruled a homicide