Text this: Magnetic localization and orientation of the capsule endoscope based on a random complex algorithm