Search for a heavy gauge boson decaying to a charged lepton and a neutrino in 1 fb−1 of pp collisions at using the ATLAS detector