Prior deprivation and reward duration affect the demand function for rest in dairy heifers