German economy shrinks for second consecutive year