AG3D: Learning to Generate 3D Avatars from 2D Image Collections