Iluka Resources posts first-half loss