Magnetoelastic coupling and unconventional magnetic ordering in the multiferroic triangular lattice AgCrS 2