Simultaneous determination of the X-ray refractive index and the attenuation length from a single digitally registered radiograph of rectangular prisms