Smart pill can track key biological markers in real-time