Monte Carlo simulations of polymer degradations. 1. Degradations without volatilization