Antiferroelectric liquid crystals with induced intermediate polar phases and the effects of doping with carbon nanotubes