Microscopic theory of spin reorientations - heterophase approach and basic model