Uniaxial-strain mechanical detwinning of CaFe[subscript 2]As[subscript 2] and BaFe[subscript 2]As[subscript 2] crystals: Optical and transport study