Design and synthesis of chemosensor for detection of ions and neutral molecules