Simulation and experiment study of a new type magnetic fluid optical grating