Spin and surface orientation effects of work function for Cr/Ni(111), Cr/Ni(100) and Cr/Ni(110) metal gates