Interplay between magnetic anisotropies in CoAu and Co films and antidot arrays: effects on the spin configuration and hysteretic behavior