A smart single molecular probe for Cu2+/Fe3+/Mg2+ by three-emission behaviors