Newcastle signs former Liverpool goalkeeper Karius