3 retired Philadelphia detectives to stand trial in perjury