Search for natural supersymmetry in events with top quark pairs and photons in pp collisions at sqrt(s) = 8 TeV