Bonucci: Cagliari win was vital