Chicken with pears, chestnuts and rosemary