Alonso gives Ferrari a boost with third place in China