Understand AI Girlfriends: How They Work