LOFAR as an ionospheric probe