How does percussion help in diagnosing medical conditions?