Spain's inflation unexpectedly eases to 10.4% in August