For companies eyeing the public markets, a SPAC can be appealing—but it requires early preparation to ensure lasting success.