(B.) Upon a finding in ex parte proceedings that investigative, expert, or other services are reasonably necessary for the representation of the defendant, the court shall authorize the defendant's attorney to obtain such services on behalf of the defendant and shall order the payment, from state funds appropriated for the defense of indigents, of fees and expenses not to exceed five hundred dolla