DWBA - calculation of the amplitudes of rectangle diagrams in direct nuclear reactions