Derivative dependent surface energy terms in nematic liquid crystals