A spin-statistics theorem for composites containing both electric and magnetic charges