Search for extra dimensions using diphoton events in 7 TeV proton-proton collisions with the ATLAS detector