German economy expands by 1% in Q2