Laser cooling and magneto-optical trapping of molecules analyzed using optical Bloch equations and the Fokker-Planck-Kramers equation