Hanjin Shipping posts quarterly profit