Castillo rebounds as Reds beat Padres 4-2 to win series