Railways gets all lines operational after accident in Andhra Pradesh