Magnetic properties of RMn6Sn6 (R = Gd-Er) compounds from neutron diffraction and Mössbauer measurements