Electronic structure of the layered compounds K[SnSb], K[SnAs] and Sr[Sn2As2]