LightSquared to pay Inmarsat $338m for spectrum