Wyatt Earp, frontier marshal