Two types of all-optical magnetization switching mechanisms using femtosecond laser pulses