Tamagawa numbers of polarized algebraic varieties