Synthesis, H2PO4− and Pd2+ ion sensing and gold nanoparticle encapsulation of ferrocenyldendrimers by a green chemistry approach