Self-dual solutions of the star-triangle relations in ZN-models