Local chemistry of Al and P impurities in silica