New detectors for metal cations and protons based on PAMAM dendrimers modified with 1,8-naphthalimide units