Nonorthogonality corrections in the method of correlated basis functions