Skyrmions in flat space and curved space