3R and 2H polytypes of MoS2: DFT and DFPT calculations of structural, optoelectronic, vibrational and thermodynamic properties. (December 2017)