Confinement and Protection of Skyrmions by Patterns of Modified Magnetic Properties.