Stock market today: US indexes rise as mega-cap earnings take the spotlight