Calculating the internal rotation energy of polyethylene