Conditions for magnetic interaction of asteroids with the solar wind