A substance that resists change in pH when either base or acid is added is called a