Surface and bulk order parameters of a nematic liquid crystal