Generalized Flory theory for hard alkane fluids