Search for heavy neutrinos or third-generation leptoquarks in final states with two hadronically decaying tau leptons and two jets in proton-proton collisions at sqrt(s) = 13 TeV