Statistical physics methods in social and economic systems