Search for supersymmetry in electroweak production with photons and large missing transverse energy in pp collisions at sqrt(s) = 8 TeV