Invariant curves near parabolic points and regions of stability