Synthesis, stabilisation and surface modification of gold and silver nanoparticles by rosmarinic acid and its analogues