Spotify posts quarterly profit; user growth beats expectations