Transition of prolyl puckering in a model of polyproline