Allow calculating gfc_stats for multiple AOIs.

Also return more information in loss_table and gain_table, and allow setting the scalefactor that determines the output units.