US-made F-35 caught between high costs, advancing technology