Modeling of nematic columnar to nematic discotic phase transitions by the extended McMillan theory