Detecting transits from Earth-sized planets around Sun-like stars