Electronic structure of twinning superlattices