Sobolev, Besov and Triebel-Lizorkin spaces on quantum tori