Surface stabilized nematic phase in a magnetic fluid