Experimentally testing Hardy's theorem on nonlocality with entangled mixed states