Moving to rental property--how long do I have to live there to avoid capital gains tax? What if I just sold rental at a gain to buy another property?