Thorntons has booked higher first-half earnings, which were boosted by lower costs and a rise in sales.