Most medical applications rely on detecting a radio frequency signal emitted by excited hydrogen atoms in the body ( present in any tissue containing water molecules ) using energy from an oscillating magnetic field applied at the appropriate resonant frequency .