Analysis: Libya records surplus in first half of 2012