How does affiliate marketing work? The basic principles explained