Ratiometric detection of Zn2+ and Cd2+ based on self-assembled nanoarchitectures with dual emissions involving aggregation enhanced emission (AEE) and its application.