Palatini approach to Born-Infeld-Einstein theory and a geometric description of electrodynamics