Convex and concave types of second baroclinic mode internal solitary waves