Quantifying entanglement of rotor chains using basis truncation: Application to dipolar endofullerene peapods