what led to the unification of germany and italy