German economy stagnates in Q2