Magnetization steps in nanomagnets induced by a time-dependent magnetic field: Application to Fe4