Allocating joint costs by means of the nucleolus