Valero beats Q2 estimates as refining margins surge 450%