Tysklands ZEW-index, som mäter investerares och analytikers förväntningar på ekonomin, ökade oväntat i juni.