Half-BPS geometries and thermodynamics of free fermions