Cavity distribution functions of pure and mixed hard-sphere systems