If a district court or bankruptcy appellate panel determines that an appeal from an order, judgment, or decree of a bankruptcy judge is frivolous, it may, after a separately filed motion or notice from the district court or bankruptcy appellate panel and reasonable opportunity to respond, award just damages and single or double costs to the appellee.