Amazon acts to end EU antitrust investigations, avoid fine