Ground-state properties and superfluidity of two- and quasi-two-dimensional solid 4He