Smart skin to treat and prevent pressure ulcers