Eluder dimension and sample complexity of Optimistic exploration