How to characterize figures of merit of two-dimensional photodetectors