Two-dimensional hexagonal tin: Ab initio geometry, stability, electronic structure and functionalization