Correlation of magnetic dichroism in x-ray absorption and photoelectron emission using ultrathin magnetic alloy films