An effective phthalazine-imidazole-based chemosensor for detecting Cu2+, Co2+ and S2− via the color change