Costain falls into red with £92m first-half loss