Understanding How App Stores Generate Revenue: A Deep Dive for Developers and Consumers