Chemical potential as a source of stability for gravitating skyrmions