A trial court must consider a party’s ability to pay before ordering that party to pay all or a portion of the fees of an expert appointed by the court under Evid. Code 730 or Fam. Code 3111 or 3112.