Inflationen steg oväntat i euroområdet i juli och kärninflationen låg still och stampade på 2,9 procent. Det visar preliminära siffror.