Taking the witness stand in his own defense, nuclear engineer James M. Smith insisted that he did not go to an Allentown park in 2016 to have sex with the 13-year-old girl he was chatting with online.