[2405.02727] Using finite automata to compute the base-$b$ representation of the golden ratio and other quadratic irrationals