Measurement of the W -> lnu and Z/gamma* -> ll production cross sections in proton-proton collisions at sqrt(s) = 7 TeV with the ATLAS detector