Search for physics beyond the standard model in events with two opposite-sign same-flavor leptons, jets, and missing transverse energy in pp collisions at sqrt[s] = 8 TeV