Defect ferromagnetism in ZnO and SnO2 induced by non-magnetic dopants