Do you pay capital gains tax and income tax on the gain realized from selling a rental property?