Despite signs that numbers of giant pandas are rising, suitable habitat has shrunk, according to satellite data.