'Vibrant' show at the Barbican examines how political upheaval stimulated Indian art