Cubist’s merger partner Adolor swings to third-quarter profit