Optical and extreme UV studies of spin dynamics in metallic and insulating ferrimagnets