From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions