Mass of Y(3940) in Bethe–Salpeter equation for quarks