The Tax Elasticity of Capital Gains and Revenue-Maximizing Rates