An implementation of the Deutsch-Jozsa algorithm on a three-qubit NMR quantum computer