Film thickness dependence of magneto‐optical and magnetic properties in Co/Pt and Co/Pd multilayers