Structural, electronic and phononic properties of PtSe2: from monolayer to bulk