Unrolled d-p and d-d terms for energy calculation
-No real improvement from unrolling d-p, so it's probably not worth unrolling the lower terms