Analytically modeling social norms using evolutionary game theory