Temperature dependence of orientation birefringence of polymers in the glassy and rubbery states