The giant dipole resonances in 11C and 15O observed with the reactions 10B(p, γ)11C and 14N(p, γ)15O