Implementation of the Deutsch-Jozsa algorithm with Josephson charge qubits