Smooth metric measure spaces and quasi-Einstein metrics