An analytic similarity theory for the planetary boundary layer stabilized by surface buoyancy