Superconductivity of KFe2As2 Under Pressure: Ab Initio Study of Tetragonal and Collapsed Tetragonal Phases