Calculation of railway network capacity: comparing methodologies for lines and nodes