Economic growth and social-assistance schemes have lifted millions of Indonesians out of poverty but many still live precariously