German economy stagnates in 2nd quarter