Snowflake gains more than 4% on earnings beat as company expands AI push