Train services west of Swansea and on the Heart of Wales line are set to be disrupted on the next two weekends.