Defender Bonucci extends Juventus contract