Asymptotic theory for the inextensional flexure and twist of plastically deformed thin rods