Layered semiconducting electrides in p-block metal oxides