Entanglement entropy in internal spaces and Ryu-Takayanagi surfaces