German inflation rises in June, state data shows