Thermoplastic copolymer, method for production thereof, and thermoplastic resin composition containing the copolymer