Quantum image encryption based on generalized affine transform and logistic map