Simplified model for a weakly unstable atmospheric boundary layer capped by an inversion layer