Hanjin posts profit, volume gains