German economy shrinks 0.3%, costly energy, higher interest rates to blame