Defects and their properties in InP and InGaAs: An ab initio study