Search for long-lived particles in events with photons and missing energy in proton-proton collisions at sqrt(s) = 7 TeV