Israel to buy four German warships