pH optimization in acid dyeing of silk