Reinforcement and Preferential Attachment Models via Pólya Urns