Microstructure and magnetic properties of spinel and hexagonal ferrimagnetic films prepared by pulsed laser deposition