Effect of roughness on the surface anisotropy and magnetostriction of magnetic multilayers