Pyrolytic Behavior of Long-Chain Alkyl Quaternary Ammonium Bromide Inside Nanopores