Polymers as solids: a quantum mechanical treatment