Creation of artificial skyrmions and antiskyrmions by anisotropy engineering