Large magnetic anisotropy and tunneling anisotropic magnetoresistance in layered bimetallic nanostructures: Case study of Mn/W(001)