Text this: Design of high-speed railway turnouts: theory and applications