Wall St. ends slightly lower on energy, earnings