Search for exclusive or semi-exclusive photon pair production and observation of exclusive and semi-exclusive electron pair production in pp collisions at sqrt(s) = 7 TeV