Geometry and singularities at infinity of real (plane) polynomial functions