Structured total least squares problems: formulations, algorithms and applications