Experimental realization of the Deutsch-Jozsa algorithm with a six-qubit cluster state