Inversion of the F2 layer critical frequency with the solar zenith angle