Group dynamics in online and face-to-face interactions: an experimental study on learning methods