When he appeared in court in Venezuela on charges of conspiring against the government of President Nicolas Maduro, John Alvarez told the judge that police officers had applied electric shocks to his genitals, ribs and knees and hit him with a bat to extract "a confession."