Modeling intrinsic basicities and acidities