The diffraction of X-rays by distorted-crystal aggregates. II. Diffraction by bent lamellae