SHED: Shapley-Based Automated Dataset Refinement for Instruction Fine-Tuning