Cysteine-grafted chitosan-mediated gold nanoparticle assembly: from nanochains to microcubes