Swiss confectionery firm Lindt & Sprüngli has said it achieved first-half profitability for the first time in its history.