StepTool: A Step-grained Reinforcement Learning Framework for Tool Learning in LLMs