Modelling of hysteresis processes in magnetic rock samples using the Preisach diagram