Generalization of the parallel position in diffraction using elastically curved crystals