The chemistry of planetary nebulae and HII regions in the dwarf galaxies Sextans A and B from deep VLT spectra