The absorption cross sections of H2 and D2 from 180 to 780 Å