Tailored synthesis of amine N-halamine copolymerized polystyrene with capability of killing bacteria.