The mechanism of polymerization reactions. I. The polymerization of styrene and methyl methacrylate