Corporate social responsibility and network externalities: a game-theoretic approach