Fluorescence detection of Mn2+, Cr2O72− and nitroexplosives and photocatalytic degradation of methyl violet and rhodamine B based on two stable metal–organic frameworks