Apple and Samsung settle 7-year patent fight