Building traps for skyrmions by the incorporation of magnetic defects into nanomagnets: Pinning and scattering traps by magnetic properties engineering