US regulators approve first digital pill to track patients