Salesforce gains as software firm bets on AI tools to power growth