So-called midcore mobile games nearly doubled their revenue last year to $3.8 billion. Here’s how they are cashing in.