Quantitative comparison between different methods for the determination of the amplified spontaneous emission threshold in dye-polymer blends and perovskite thin films