Formation of point defects in strontium titanate