Averaged dynamics of two-phase media in a vibration field