Nick Kyrgios has pulled out of Rio 2016, accusing the Australian Olympic Committee (AOC) of "unfair and unjust treatment" and "unwarranted attacks".