SpaceX posts $2B first-half loss as Micron books $28B profit