German economy surprisingly contracts in 2nd quarter