Adam Frazier traded from Pirates to Padres