Semi-automatic construction of pile-supported subgrade adjacent to existing railway