Diamondbacks take three of four against Marlins in Miami