US markets posted another day of solid gains on Wednesday, on optimistic jobs reports and a boost in energy stocks