Spotify in profit but ad revenue weaker than forecast