Moseley shuts down Diamondbacks in win over Padres