Introduction of the chemical potential in the overlap formalism