Dynamics of first- and second-order phase transitions in amorphous magnetooptic TbFeCo films