Absolute Determination of the Magnetic Anisotropy of Ultrathin Gd and Ni Films on W(110)